package com.nh.controller;

import com.nh.commom.util.R;
import com.nh.service.ILibraryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author QAQ
 * @since 2025-01-13
 */
@RestController
@RequestMapping("/librarys")
public class LibraryController {
    @Autowired
    private ILibraryService libraryService;
    @GetMapping("/list")
    public R list(){
        return R.ok().data("list",libraryService.list());
    }
}
